package com.harmony.pilot.knowledge.repository;

import com.harmony.pilot.knowledge.entity.GniFile;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * GNI文件Repository
 */
@Repository
public interface GniFileRepository extends JpaRepository<GniFile, Long> {
    
    Optional<GniFile> findByFilePath(String filePath);
    
    List<GniFile> findByModuleName(String moduleName);
    
    List<GniFile> findByFileNameContaining(String fileName);
}

